home *** CD-ROM | disk | FTP | other *** search
- -- card: 4626 from stack: in.0
- -- bmap block id: 5197
- -- flags: 4000
- -- background id: 2601
- -- name: Finish
- ----- HyperTalk script -----
- on Evaluate
- global CorrectAnswers
- global WrongAnswers
- hide card field "Results"
- set the cursor to 4
- set the lockScreen to true
- go card "Problem"
- get card field "Problem Number"
- put it into pno
- put 0 into checkline
- repeat with l = 1 to pno
- go card "Problem"
- get line l of card field "ProblemList"
- put it into answerText
- put the value of it into answer
- get line l of card field "AnswerList"
- if it = answer then
- add 1 to CorrectAnswers
- --go card "Finish"
- --add 1 to checkline
- --put answerText && " is " && it into line checkline of --card field checklist
- play "harpsichord"
- else
- if it > 0 and it <=20 then
-
- add 1 to WrongAnswers
- go card "Finish"
- add 1 to checkline
- put answerText && "is not" && it into line checkline of card field checklist
- play "boing"
-
- end if
-
- end if
- end repeat
- go card "Finish"
- set the lockScreen to false
- put "You got " & CorrectAnswers & " Problems right!" into line 1 of card field "Results"
- put "You missed " & WrongAnswers & " Problems!" into line 2 of card field "Results"
- show card field "Results"
- put CorrectAnswers & return before line 1 of card field "record"
- end Evaluate
- on MouseUp
- hide card field "Results"
- go card "Start"
- end MouseUp
-
-
-
- -- part 1 (field)
- -- low flags: 81
- -- high flags: 0000
- -- rect: left=128 top=195 right=238 bottom=345
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Results
-
-
- -- part 2 (field)
- -- low flags: 01
- -- high flags: 0007
- -- rect: left=396 top=25 right=336 bottom=488
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: checklist
-
-
- -- part 3 (field)
- -- low flags: 01
- -- high flags: 0007
- -- rect: left=5 top=27 right=333 bottom=89
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: record
-
-
- -- part contents for card part 1
- ----- text -----
- You got 30 Problems right!
- You missed 0 Problems!
-
- -- part contents for card part 3
- ----- text -----
- 30
-